Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(react): update menu tests to use RTL #11872

Merged
merged 3 commits into from
Jul 29, 2022

Conversation

abbeyhrt
Copy link
Contributor

Closes #11710

Updates Menu-test.js to RTL. Also updates the proptype for target because Proptypes.element expects a react element but ReactDOM.createPortal, where target is used, expects an HTML element so there were warnings when using target as intended

Changelog

New

  • {{new thing}}

Changed

  • {{change thing}}

Removed

  • {{removed thing}}

Testing / Reviewing

Verify tests pass and tests component properly.

@abbeyhrt abbeyhrt requested review from a team as code owners July 27, 2022 22:17
@abbeyhrt abbeyhrt requested review from aledavila and dakahn July 27, 2022 22:17
@netlify
Copy link

netlify bot commented Jul 27, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7e17335
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/62e3f9d1b27f7b0008cb7d72
😎 Deploy Preview https://deploy-preview-11872--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jul 27, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 7e17335
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/62e3f9d1b27f7b0008cb7d74
😎 Deploy Preview https://deploy-preview-11872--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kodiakhq kodiakhq bot merged commit aa44d1d into carbon-design-system:main Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Use RTL for testing in Menu/Menu-test.js
3 participants